<?php
/**
 *  * author 韩天尊
 * Date: 2022/3/15
 * Email: <724700483@qq.com>
 */

namespace App\HttpController\Api\InterfaceApi;

use App\HttpController\Api\ApiBase;
use App\Toolys\InterfaceData;

abstract class InterfaceApiBase extends ApiBase
{
    public function onRequest(?string $action): ?bool
    {
        if (parent::onRequest($action)){
            $this->writeBack = new InterfaceData();
            $this->writeBack->write_back_type = true;
            return true;
        }
        return false;
    }

}